class MyNumber<E extends Number>{

}

public class Test02 {
    public static void main(String[] args) {
        MyNumber<Integer> obj1 = new MyNumber<>();
//        MyNumber<String> obj2 = new MyNumber<>();//报错

    }
}
